# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Kevin Puertas <kevinpr at jkanetwork dot com>
# Contributor: St.kai <St.kai@live.cn>
# Contributor: ssysmso sending updated PKGBUILD
# Contributor: Christoph Korn <christoph.korn at posteo dot de>

pkgname=beebeep
pkgver=5.8.6
pkgrel=1
pkgdesc='Secure LAN messenger and file sender'
arch=('loong64' 'x86_64')
url='https://www.beebeep.net/'
license=('GPL3')
depends=('qt5-multimedia' 'qt5-x11extras')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-code-$pkgver.zip"
        'install-target.patch')
sha256sums=('44994daf35c042aa1f023ad95c2fa17c2c652da5d4584ca547b1bbc2ed916248'
            '11ff00bcee9d923ae3a34244b13813a33c8aafceda9a8c5e512fee1c3c52cb94')
 
prepare() {
  cd $pkgname-code-r*
  patch -Np0 -i ../install-target.patch
}
 
build() {
  cd $pkgname-code-r*
  qmake-qt5 PREFIX=/usr
  make
}
 
package(){
  cd $pkgname-code-r*
  make INSTALL_ROOT="$pkgdir" install
}
